/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Chiabai_total;

import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Oho
 */
public class DieuKhien extends Thread{
    ArrayList<ThreadMain>img ;
    public DieuKhien(ArrayList<ThreadMain>img)
    {
        this.img = img;
    }
    public void run()
    {
        try {
            for(int i =0;i<img.size();i++)
            {   img.get(i).start();
            sleep(1000);}
        } catch (InterruptedException ex) {
            Logger.getLogger(DieuKhien.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
}
